<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <base href="<%=basePath%>">
    <title>管理员登录</title>
    <link rel="stylesheet" href="assets/outerRes/css/bootstrap.css">
    <link rel="stylesheet" href="assets/outerRes/css/bootstrap-theme.css"/>
    <link rel="stylesheet" href="assets/innerRes/css/login-in.css">
</head>
<body>
<form id="loginForm" class="col-sm-offset-3 form-horizontal" role="form">
    <div class="form-group">
        <label for="username" class="col-sm-2 control-label"></label>
        <div class="leftHide col-sm-5 label label-danger">
            用户名或者密码错误
        </div>
    </div>
    <div class="form-group">
        <label for="username" class="col-sm-2 control-label">用户名</label>
        <div class="col-sm-5">
            <input type="text" class="form-control" id="username" name="username"
                   placeholder="请输入用户名">
        </div>
    </div>
    <div class="form-group">
        <label for="password" class="col-sm-2 control-label">密码</label>
        <div class="col-sm-5">
            <input type="password" class="form-control" id="password" name="password"
                   placeholder="请输入密码">
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-4">
            <div class="checkbox">
                <label>
                    <input type="checkbox" name="rememberMe"> 请记住我
                </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-4">
            <button id="submitButton" class="btn btn-default">登录</button>
        </div>
    </div>
</form>

<input id="basePath" type="hidden" value="<%=basePath%>"/>

<script src="assets/outerRes/js/jquery-3.0.0.js"></script>
<script src="assets/outerRes/js/bootstrap.js"></script>
<script src="assets/innerRes/js/login-in.js"></script>
<script>
    $(function () {
        loginIn.init();
    });
</script>
</body>
</html>
